home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
mint110s.zoo
/
basepage.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-16
|
1KB
|
41 lines
/*
* BASEPAGE.H Definition of the basepage structure.
*/
#ifndef _BASEP_H
#define _BASEP_H
typedef struct basep {
long p_lowtpa; /* pointer to self (bottom of TPA) */
long p_hitpa; /* pointer to top of TPA + 1 */
long p_tbase; /* base of text segment */
long p_tlen; /* length of text segment */
long p_dbase; /* base of data segment */
long p_dlen; /* length of data segment */
long p_bbase; /* base of BSS segment */
long p_blen; /* length of BSS segment */
char *p_dta; /* pointer to current DTA */
struct basep *p_parent; /* pointer to parent's basepage */
long p_flags; /* memory usage flags */
char *p_env; /* pointer to environment string */
/* Anything after this (except for p_cmdlin) is undocumented, reserved,
* subject to change, etc. -- user programs must NOT use!
*/
char p_devx[6]; /* real handles of the standard devices */
char p_res2; /* reserved */
char p_defdrv; /* default drv */
long p_undef[17]; /* reserved space */
long p_usp; /* a fake USP to make dLibs programs happy */
char p_cmdlin[128]; /* command line image */
} BASEPAGE;
#if defined(__TURBOC__) && !defined(__MINT__)
# include <basepage.h>
# define _base (BASEPAGE *)(_BasPag)
#else
/* pointer to our basepage, set by compiler startup code */
extern BASEPAGE *_base;
#endif
#endif /* _BASEP_H */